home *** CD-ROM | disk | FTP | other *** search
- <HTMLtool>Hotkeys on a web site !</HTMLtool>
-
- <!-- TWO STEPS TO INSTALL QUICK KEYS:
-
- 1. Copy the coding into the HEAD of your HTML document
- 2. Add the last code into the BODY of your HTML document -->
-
- <!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
-
- <HEAD>
-
- <SCRIPT LANGUAGE="JavaScript">
-
- <!-- Begin
- var key = new Array(); // Define QuickKey pages here
- key['h'] = "index.html";
- key['f'] = "feedback.html";
- key['n'] = "new.html";
- key['s'] = "toc.html";
-
- function getKey(keyStroke) {
- isNetscape=(document.layers);
- // Cross-browser key capture routine couresty
- // of Randy Bennett (rbennett@thezone.net)
- eventChooser = (isNetscape) ? keyStroke.which : event.keyCode;
- which = String.fromCharCode(eventChooser).toLowerCase();
- for (var i in key) if (which == i) window.location = key[i];
- }
- document.onkeypress = getKey;
- // End -->
- </script>
- </HEAD>
-
- <!-- STEP TWO: Copy this code into the BODY of your HTML document -->
-
- <BODY>
-
- <center>
- <table border=0><tr><td>
- <pre>
- This site equipped with QuickKeys!
-
- The following QuickKeys are available:
-
- Press the letter 'h' for: Home Page
- Press the letter 'f' for: Feedback Page
- Press the letter 'n' for: What's New Page
- Press the letter 's' for: Site Contents
- </pre>
- </td></tr></table>
- </center>
-